<!-- 
    Copyright (c) 2011 Microsoft Corporation.  All rights reserved.
    Use of this sample source code is subject to the terms of the Microsoft license 
    agreement under which you licensed this sample source code and is provided AS-IS.
    If you did not accept the terms of the license agreement, you are not authorized 
    to use this sample source code.  For the terms of the license, please see the 
    license agreement between you and Microsoft.
    
    To see all Code Samples for Windows Phone, visit http://go.microsoft.com/fwlink/?LinkID=219604
-->
<phone:PhoneApplicationPage 
    x:Class="sdkBasicCameraCS.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="728"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    shell:SystemTray.IsVisible="False" xmlns:my="clr-namespace:Microsoft.Phone.Controls.Maps;assembly=Microsoft.Phone.Controls.Maps">

    <!--LayoutRoot is the root grid where all page content is placed-->
    
    <!--TitlePanel contains the name of the application and page title-->
    <StackPanel x:Name="TitlePanel" Margin="12,17,0,6">
        <TextBlock Name="ApplicationTitle" Text="WinShare" Style="{StaticResource PhoneTextNormalStyle}" Height="43" FontSize="25" />
        <TextBlock Name="PageTitle" Text="Photo Around" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}" FontSize="35" Height="60" Width="460" />
        <Grid Height="530" Name="grid1" Width="457">
            <my:Map Mode="Road" Height="530" HorizontalAlignment="Left" Margin="6,0,0,0" Name="map1" VerticalAlignment="Top" Width="444" CredentialsProvider="Ap8mNcu9Wda_rlzgmforMFoWDvix5hAL5NfI8w3Mm21gwMFYqFNX4X_4ogatyIYR"/>
        </Grid>
        <Grid><TextBox Name="textBox1" Text="Type city name" Margin="0,0,184,0" Height="79" VerticalAlignment="Top" />
            <Button Content="Select" Name="button1" Margin="310,0,6,0" Click="button1_Click" />
        </Grid>
    </StackPanel>


    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar Mode="Default" Opacity="1.0" IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBarIconButton IconUri="/Icons/dark/appbar.feature.camera.rest.png" Click="Share" Text="To Share"/>
            <shell:ApplicationBarIconButton IconUri="/Icons/dark/appbar.share.rest.png" Click="ToMainPage" Text="MainPage"/>
            <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem Text="MenuItem 1"/>
                <shell:ApplicationBarMenuItem Text="MenuItem 2"/>
                <shell:ApplicationBarMenuItem Text="MenuItem 3"/>
            </shell:ApplicationBar.MenuItems>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>


</phone:PhoneApplicationPage>
